package campus.model;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class CashFlowExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CashFlowExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andXmIdIsNull() {
            addCriterion("xm_id is null");
            return (Criteria) this;
        }

        public Criteria andXmIdIsNotNull() {
            addCriterion("xm_id is not null");
            return (Criteria) this;
        }

        public Criteria andXmIdEqualTo(Integer value) {
            addCriterion("xm_id =", value, "xmId");
            return (Criteria) this;
        }

        public Criteria andXmIdNotEqualTo(Integer value) {
            addCriterion("xm_id <>", value, "xmId");
            return (Criteria) this;
        }

        public Criteria andXmIdGreaterThan(Integer value) {
            addCriterion("xm_id >", value, "xmId");
            return (Criteria) this;
        }

        public Criteria andXmIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("xm_id >=", value, "xmId");
            return (Criteria) this;
        }

        public Criteria andXmIdLessThan(Integer value) {
            addCriterion("xm_id <", value, "xmId");
            return (Criteria) this;
        }

        public Criteria andXmIdLessThanOrEqualTo(Integer value) {
            addCriterion("xm_id <=", value, "xmId");
            return (Criteria) this;
        }

        public Criteria andXmIdIn(List<Integer> values) {
            addCriterion("xm_id in", values, "xmId");
            return (Criteria) this;
        }

        public Criteria andXmIdNotIn(List<Integer> values) {
            addCriterion("xm_id not in", values, "xmId");
            return (Criteria) this;
        }

        public Criteria andXmIdBetween(Integer value1, Integer value2) {
            addCriterion("xm_id between", value1, value2, "xmId");
            return (Criteria) this;
        }

        public Criteria andXmIdNotBetween(Integer value1, Integer value2) {
            addCriterion("xm_id not between", value1, value2, "xmId");
            return (Criteria) this;
        }

        public Criteria andXmNameIsNull() {
            addCriterion("xm_name is null");
            return (Criteria) this;
        }

        public Criteria andXmNameIsNotNull() {
            addCriterion("xm_name is not null");
            return (Criteria) this;
        }

        public Criteria andXmNameEqualTo(String value) {
            addCriterion("xm_name =", value, "xmName");
            return (Criteria) this;
        }

        public Criteria andXmNameNotEqualTo(String value) {
            addCriterion("xm_name <>", value, "xmName");
            return (Criteria) this;
        }

        public Criteria andXmNameGreaterThan(String value) {
            addCriterion("xm_name >", value, "xmName");
            return (Criteria) this;
        }

        public Criteria andXmNameGreaterThanOrEqualTo(String value) {
            addCriterion("xm_name >=", value, "xmName");
            return (Criteria) this;
        }

        public Criteria andXmNameLessThan(String value) {
            addCriterion("xm_name <", value, "xmName");
            return (Criteria) this;
        }

        public Criteria andXmNameLessThanOrEqualTo(String value) {
            addCriterion("xm_name <=", value, "xmName");
            return (Criteria) this;
        }

        public Criteria andXmNameLike(String value) {
            addCriterion("xm_name like", value, "xmName");
            return (Criteria) this;
        }

        public Criteria andXmNameNotLike(String value) {
            addCriterion("xm_name not like", value, "xmName");
            return (Criteria) this;
        }

        public Criteria andXmNameIn(List<String> values) {
            addCriterion("xm_name in", values, "xmName");
            return (Criteria) this;
        }

        public Criteria andXmNameNotIn(List<String> values) {
            addCriterion("xm_name not in", values, "xmName");
            return (Criteria) this;
        }

        public Criteria andXmNameBetween(String value1, String value2) {
            addCriterion("xm_name between", value1, value2, "xmName");
            return (Criteria) this;
        }

        public Criteria andXmNameNotBetween(String value1, String value2) {
            addCriterion("xm_name not between", value1, value2, "xmName");
            return (Criteria) this;
        }

        public Criteria andXmLineIsNull() {
            addCriterion("xm_line is null");
            return (Criteria) this;
        }

        public Criteria andXmLineIsNotNull() {
            addCriterion("xm_line is not null");
            return (Criteria) this;
        }

        public Criteria andXmLineEqualTo(String value) {
            addCriterion("xm_line =", value, "xmLine");
            return (Criteria) this;
        }

        public Criteria andXmLineNotEqualTo(String value) {
            addCriterion("xm_line <>", value, "xmLine");
            return (Criteria) this;
        }

        public Criteria andXmLineGreaterThan(String value) {
            addCriterion("xm_line >", value, "xmLine");
            return (Criteria) this;
        }

        public Criteria andXmLineGreaterThanOrEqualTo(String value) {
            addCriterion("xm_line >=", value, "xmLine");
            return (Criteria) this;
        }

        public Criteria andXmLineLessThan(String value) {
            addCriterion("xm_line <", value, "xmLine");
            return (Criteria) this;
        }

        public Criteria andXmLineLessThanOrEqualTo(String value) {
            addCriterion("xm_line <=", value, "xmLine");
            return (Criteria) this;
        }

        public Criteria andXmLineLike(String value) {
            addCriterion("xm_line like", value, "xmLine");
            return (Criteria) this;
        }

        public Criteria andXmLineNotLike(String value) {
            addCriterion("xm_line not like", value, "xmLine");
            return (Criteria) this;
        }

        public Criteria andXmLineIn(List<String> values) {
            addCriterion("xm_line in", values, "xmLine");
            return (Criteria) this;
        }

        public Criteria andXmLineNotIn(List<String> values) {
            addCriterion("xm_line not in", values, "xmLine");
            return (Criteria) this;
        }

        public Criteria andXmLineBetween(String value1, String value2) {
            addCriterion("xm_line between", value1, value2, "xmLine");
            return (Criteria) this;
        }

        public Criteria andXmLineNotBetween(String value1, String value2) {
            addCriterion("xm_line not between", value1, value2, "xmLine");
            return (Criteria) this;
        }

        public Criteria andXmPriceIsNull() {
            addCriterion("xm_price is null");
            return (Criteria) this;
        }

        public Criteria andXmPriceIsNotNull() {
            addCriterion("xm_price is not null");
            return (Criteria) this;
        }

        public Criteria andXmPriceEqualTo(BigDecimal value) {
            addCriterion("xm_price =", value, "xmPrice");
            return (Criteria) this;
        }

        public Criteria andXmPriceNotEqualTo(BigDecimal value) {
            addCriterion("xm_price <>", value, "xmPrice");
            return (Criteria) this;
        }

        public Criteria andXmPriceGreaterThan(BigDecimal value) {
            addCriterion("xm_price >", value, "xmPrice");
            return (Criteria) this;
        }

        public Criteria andXmPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("xm_price >=", value, "xmPrice");
            return (Criteria) this;
        }

        public Criteria andXmPriceLessThan(BigDecimal value) {
            addCriterion("xm_price <", value, "xmPrice");
            return (Criteria) this;
        }

        public Criteria andXmPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("xm_price <=", value, "xmPrice");
            return (Criteria) this;
        }

        public Criteria andXmPriceIn(List<BigDecimal> values) {
            addCriterion("xm_price in", values, "xmPrice");
            return (Criteria) this;
        }

        public Criteria andXmPriceNotIn(List<BigDecimal> values) {
            addCriterion("xm_price not in", values, "xmPrice");
            return (Criteria) this;
        }

        public Criteria andXmPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("xm_price between", value1, value2, "xmPrice");
            return (Criteria) this;
        }

        public Criteria andXmPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("xm_price not between", value1, value2, "xmPrice");
            return (Criteria) this;
        }

        public Criteria andXmAmountIsNull() {
            addCriterion("xm_amount is null");
            return (Criteria) this;
        }

        public Criteria andXmAmountIsNotNull() {
            addCriterion("xm_amount is not null");
            return (Criteria) this;
        }

        public Criteria andXmAmountEqualTo(String value) {
            addCriterion("xm_amount =", value, "xmAmount");
            return (Criteria) this;
        }

        public Criteria andXmAmountNotEqualTo(String value) {
            addCriterion("xm_amount <>", value, "xmAmount");
            return (Criteria) this;
        }

        public Criteria andXmAmountGreaterThan(String value) {
            addCriterion("xm_amount >", value, "xmAmount");
            return (Criteria) this;
        }

        public Criteria andXmAmountGreaterThanOrEqualTo(String value) {
            addCriterion("xm_amount >=", value, "xmAmount");
            return (Criteria) this;
        }

        public Criteria andXmAmountLessThan(String value) {
            addCriterion("xm_amount <", value, "xmAmount");
            return (Criteria) this;
        }

        public Criteria andXmAmountLessThanOrEqualTo(String value) {
            addCriterion("xm_amount <=", value, "xmAmount");
            return (Criteria) this;
        }

        public Criteria andXmAmountLike(String value) {
            addCriterion("xm_amount like", value, "xmAmount");
            return (Criteria) this;
        }

        public Criteria andXmAmountNotLike(String value) {
            addCriterion("xm_amount not like", value, "xmAmount");
            return (Criteria) this;
        }

        public Criteria andXmAmountIn(List<String> values) {
            addCriterion("xm_amount in", values, "xmAmount");
            return (Criteria) this;
        }

        public Criteria andXmAmountNotIn(List<String> values) {
            addCriterion("xm_amount not in", values, "xmAmount");
            return (Criteria) this;
        }

        public Criteria andXmAmountBetween(String value1, String value2) {
            addCriterion("xm_amount between", value1, value2, "xmAmount");
            return (Criteria) this;
        }

        public Criteria andXmAmountNotBetween(String value1, String value2) {
            addCriterion("xm_amount not between", value1, value2, "xmAmount");
            return (Criteria) this;
        }

        public Criteria andXmCdateIsNull() {
            addCriterion("xm_cdate is null");
            return (Criteria) this;
        }

        public Criteria andXmCdateIsNotNull() {
            addCriterion("xm_cdate is not null");
            return (Criteria) this;
        }

        public Criteria andXmCdateEqualTo(Date value) {
            addCriterion("xm_cdate =", value, "xmCdate");
            return (Criteria) this;
        }

        public Criteria andXmCdateNotEqualTo(Date value) {
            addCriterion("xm_cdate <>", value, "xmCdate");
            return (Criteria) this;
        }

        public Criteria andXmCdateGreaterThan(Date value) {
            addCriterion("xm_cdate >", value, "xmCdate");
            return (Criteria) this;
        }

        public Criteria andXmCdateGreaterThanOrEqualTo(Date value) {
            addCriterion("xm_cdate >=", value, "xmCdate");
            return (Criteria) this;
        }

        public Criteria andXmCdateLessThan(Date value) {
            addCriterion("xm_cdate <", value, "xmCdate");
            return (Criteria) this;
        }

        public Criteria andXmCdateLessThanOrEqualTo(Date value) {
            addCriterion("xm_cdate <=", value, "xmCdate");
            return (Criteria) this;
        }

        public Criteria andXmCdateIn(List<Date> values) {
            addCriterion("xm_cdate in", values, "xmCdate");
            return (Criteria) this;
        }

        public Criteria andXmCdateNotIn(List<Date> values) {
            addCriterion("xm_cdate not in", values, "xmCdate");
            return (Criteria) this;
        }

        public Criteria andXmCdateBetween(Date value1, Date value2) {
            addCriterion("xm_cdate between", value1, value2, "xmCdate");
            return (Criteria) this;
        }

        public Criteria andXmCdateNotBetween(Date value1, Date value2) {
            addCriterion("xm_cdate not between", value1, value2, "xmCdate");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}